package com.linq.cool.beauty.domain;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.linq.cool.common.core.domain.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.math.BigDecimal;

/**
 * @Author: yqlin
 * @Date: 2021/2/5 17:25
 * @Description: 美容项目产品
 * @Version: 1.0.0
 */
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = true)
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "beauty_product")
public class BeautyProduct extends BaseEntity {
    /**
     * 主键id
     */
    @JsonSerialize(using = ToStringSerializer.class)
    @TableId(value = "id", type = IdType.INPUT)
    private Long id;
    /**
     * 品牌ID
     */
    @TableField(value = "brand_id")
    private Long brandId;

    /**
     * 品牌名称
     */
    @TableField(value = "brand_name")
    private String brandName;

    /**
     * 商品名称
     */
    @TableField(value = "`name`")
    private String name;

    /**
     * 商品分类id
     */
    @TableField(value = "product_category_id")
    private Long productCategoryId;

    /**
     * 商品图片
     */
    @TableField(value = "pic")
    private String pic;

    /**
     * 商品价格
     */
    @TableField(value = "price")
    private BigDecimal price;

    /**
     * 销量
     */
    @TableField(value = "sale")
    private Integer sale;

    /**
     * 轮播图图片,至少一张,英文逗号隔开
     */
    @TableField(value = "album_pics")
    private String albumPics;

    /**
     * 可获取积分
     */
    @TableField(value = "point")
    private BigDecimal point;

    /**
     * 评论数
     */
    @TableField(value = "comment_num")
    private Integer commentNum;

    /**
     * 副标题
     */
    @TableField(value = "sub_title")
    private String subTitle;

    /**
     * 状态（0:正常 1:停用）
     */
    @TableField(value = "`status`")
    private Integer status;

    /**
     * 删除标志（0:存在 1:删除）
     */
    @TableLogic
    @TableField(value = "is_deleted")
    private Integer isDeleted;

    /**
     * 商品描述
     */
    @TableField(value = "p_desc")
    private String pDesc;

    /**
     * 详情内容
     */
    @TableField(value = "content")
    private String content;

    /**
     * 是否上架,0否1是
     */
    @TableField(value = "publish_status")
    private Integer publishStatus;

    /**
     * 是否新品,0否1是
     */
    @TableField(value = "new_status")
    private Integer newStatus;

    /**
     * 是否推荐,0否1是
     */
    @TableField(value = "recommend_status")
    private Integer recommendStatus;

    /**
     * 促销价格
     */
    @TableField(value = "promotion_price")
    private BigDecimal promotionPrice;

    /**
     * 是否审核,0未审核,1审核,2,不通过
     */
    @TableField(value = "verify_status")
    private Integer verifyStatus;

    /**
     * 排序
     */
    @TableField(value = "sort")
    private Integer sort;
}